package com.xyz.rok.tools.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.xyz.rok.tools.model.UnionRole;
import com.xyz.rok.tools.mapper.UnionRoleMapper;
import com.xyz.rok.tools.service.UnionRoleService;
@Service
public class UnionRoleServiceImpl implements UnionRoleService{

    @Resource
    private UnionRoleMapper unionRoleMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return unionRoleMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(UnionRole record) {
        return unionRoleMapper.insert(record);
    }

    @Override
    public int insertSelective(UnionRole record) {
        return unionRoleMapper.insertSelective(record);
    }

    @Override
    public UnionRole selectByPrimaryKey(Long id) {
        return unionRoleMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(UnionRole record) {
        return unionRoleMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(UnionRole record) {
        return unionRoleMapper.updateByPrimaryKey(record);
    }

}
